#ifndef TRACKTHREAD_H
#define TRACKTHREAD_H

#include <QThread>
#include <QDateTime>
#include "track.h"
#include "gps.h"

// Поток для записи трека.

class TrackThread : public QThread
{
    Q_OBJECT

public:
    TrackThread(Track*, GPS*);
    ~TrackThread();
    void stop(void);
protected:
    void run();
private:
    Track *myTrack;
    GPS *myReceiver;
    volatile bool stopped;
};

#endif // TRACKTHREAD_H
